home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / D-G / Extension Shell 1.3.sit / Extension Shell 1.3 ƒ / Extension Shell 1.3 (Source) / Extension Shell #includes / ParamBlock.h < prev    next >
MacBinary  |  1994-04-08  |  7.9 KB  |  [TEXT/R*ch]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Fri Apr 8 00:00:55 1994, modified Fri Apr 8 00:00:55 1994, creator BBEdit, type ASCII, 7149 bytes "ParamBlock.h" , at 0x1c6d 670 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[R*ch]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 50 61 72 61 6d 42 | 6c 6f 63 6b 2e 68 00 00 |..ParamB|lock.h..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 52 2a 63 | 68 01 00 00 00 00 00 00 |.TEXTR*c|h.......|
|00000050| 00 00 00 00 00 1b ed 00 | 00 02 9e a9 ca 87 77 a9 |........|......w.|
|00000060| ca 87 77 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..w.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 fe 56 00 00 |........|.....V..|
|00000080| 2f 2a 09 4e 41 4d 45 3a | 0d 09 09 50 61 72 61 6d |/*.NAME:|...Param|
|00000090| 42 6c 6f 63 6b 2e 68 0d | 0d 09 57 52 49 54 54 45 |Block.h.|..WRITTE|
|000000a0| 4e 20 42 59 3a 0d 09 09 | 44 61 69 72 20 47 72 61 |N BY:...|Dair Gra|
|000000b0| 6e 74 0d 09 09 09 09 0d | 09 44 45 53 43 52 49 50 |nt......|.DESCRIP|
|000000c0| 54 49 4f 4e 3a 0d 09 09 | 44 65 66 69 6e 69 74 69 |TION:...|Definiti|
|000000d0| 6f 6e 20 6f 66 20 74 68 | 65 20 50 61 72 61 6d 42 |on of th|e ParamB|
|000000e0| 6c 6f 63 6b 20 74 68 61 | 74 20 45 78 74 65 6e 73 |lock tha|t Extens|
|000000f0| 69 6f 6e 20 53 68 65 6c | 6c 20 75 73 65 73 20 66 |ion Shel|l uses f|
|00000100| 6f 72 20 63 6f 6d 6d 75 | 6e 69 63 61 74 69 6f 6e |or commu|nication|
|00000110| 0d 09 09 77 69 74 68 20 | 79 6f 75 72 20 63 6f 64 |...with |your cod|
|00000120| 65 2e 0d 0d 09 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |e....***|********|
|00000130| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000140| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000150| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000160| 2a 2a 2a 2a 0d 09 49 4d | 50 4f 52 54 41 4e 54 0d |****..IM|PORTANT.|
|00000170| 09 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.*******|********|
|00000180| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000190| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001b0| 0d 09 09 54 68 69 73 20 | 66 69 6c 65 20 69 73 20 |...This |file is |
|000001c0| 70 72 6f 62 61 62 6c 79 | 20 2a 74 68 65 2a 20 6d |probably| *the* m|
|000001d0| 6f 73 74 20 69 6d 70 6f | 72 74 61 6e 74 20 66 69 |ost impo|rtant fi|
|000001e0| 6c 65 20 66 6f 72 20 45 | 78 74 65 6e 73 69 6f 6e |le for E|xtension|
|000001f0| 20 53 68 65 6c 6c 2e 20 | 52 65 61 64 0d 09 09 69 | Shell. |Read...i|
|00000200| 74 20 63 61 72 65 66 75 | 6c 6c 79 20 2d 20 69 74 |t carefu|lly - it|
|00000210| 20 64 65 66 69 6e 65 73 | 20 2a 65 78 61 63 74 6c | defines| *exactl|
|00000220| 79 2a 20 68 6f 77 20 79 | 6f 75 72 20 45 53 20 48 |y* how y|our ES H|
|00000230| 61 6e 64 6c 65 72 20 63 | 6f 6d 6d 75 6e 69 63 61 |andler c|ommunica|
|00000240| 74 65 73 20 77 69 74 68 | 0d 09 09 45 78 74 65 6e |tes with|...Exten|
|00000250| 73 69 6f 6e 20 53 68 65 | 6c 6c 2c 20 61 6e 64 20 |sion She|ll, and |
|00000260| 68 6f 77 20 69 74 20 64 | 65 73 63 72 69 62 65 73 |how it d|escribes|
|00000270| 20 74 68 65 20 63 6f 64 | 65 20 72 65 73 6f 75 72 | the cod|e resour|
|00000280| 63 65 73 20 69 74 20 77 | 61 6e 74 73 0d 09 09 45 |ces it w|ants...E|
|00000290| 78 74 65 6e 73 69 6f 6e | 20 53 68 65 6c 6c 20 74 |xtension| Shell t|
|000002a0| 6f 20 6c 6f 61 64 2e 0d | 0d 09 09 52 65 61 64 20 |o load..|...Read |
|000002b0| 74 68 69 73 20 66 69 6c | 65 20 74 68 72 6f 75 67 |this fil|e throug|
|000002c0| 68 2c 20 61 6e 64 20 70 | 72 69 6e 74 20 69 74 20 |h, and p|rint it |
|000002d0| 6f 75 74 2e 0d 09 09 0d | 0d 09 5f 5f 5f 5f 5f 5f |out.....|..______|
|000002e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000002f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000300| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000310| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000320| 5f 5f 5f 5f 5f 0d 2a 2f | 0d 23 69 66 6e 64 65 66 |_____.*/|.#ifndef|
|00000330| 20 5f 5f 45 53 50 41 52 | 41 4d 42 4c 4f 43 4b 5f | __ESPAR|AMBLOCK_|
|00000340| 5f 0d 23 64 65 66 69 6e | 65 20 5f 5f 45 53 50 41 |_.#defin|e __ESPA|
|00000350| 52 41 4d 42 4c 4f 43 4b | 5f 5f 0d 2f 2f 3d 3d 3d |RAMBLOCK|__.//===|
|00000360| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000370| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000380| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000390| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000003a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 2f 2f 09 09 49 |========|==.//..I|
|000003b0| 6e 63 6c 75 64 65 20 66 | 69 6c 65 73 09 09 09 09 |nclude f|iles....|
|000003c0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 20 0d 2f |........|..... ./|
|000003d0| 2f 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |/-------|--------|
|000003e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000003f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000400| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000410| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 23 |--------|------.#|
|00000420| 69 6e 63 6c 75 64 65 20 | 3c 52 65 74 72 61 63 65 |include |<Retrace|
|00000430| 2e 68 3e 0d 23 69 6e 63 | 6c 75 64 65 20 3c 53 68 |.h>.#inc|lude <Sh|
|00000440| 75 74 64 6f 77 6e 2e 68 | 3e 0d 23 69 6e 63 6c 75 |utdown.h|>.#inclu|
|00000450| 64 65 20 22 45 53 43 6f | 6e 73 74 61 6e 74 73 2e |de "ESCo|nstants.|
|00000460| 68 22 0d 0d 0d 0d 0d 0d | 2f 2f 3d 3d 3d 3d 3d 3d |h"......|//======|
|00000470| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000480| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000490| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000004a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000004b0| 3d 3d 3d 3d 3d 3d 3d 0d | 2f 2f 09 09 53 74 72 75 |=======.|//..Stru|
|000004c0| 63 74 75 72 65 73 09 09 | 09 09 09 09 09 09 09 09 |ctures..|........|
|000004d0| 09 09 09 09 09 09 20 0d | 2f 2f 2d 2d 2d 2d 2d 2d |...... .|//------|
|000004e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000004f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000500| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000510| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000520| 2d 2d 2d 2d 2d 2d 2d 0d | 2f 2f 20 53 69 78 20 74 |-------.|// Six t|
|00000530| 79 70 65 73 20 6f 66 20 | 63 6f 64 65 20 72 65 73 |ypes of |code res|
|00000540| 6f 75 72 63 65 73 20 61 | 72 65 20 73 75 70 70 6f |ources a|re suppo|
|00000550| 72 74 65 64 20 72 69 67 | 68 74 20 6e 6f 77 2e 20 |rted rig|ht now. |
|00000560| 44 65 66 69 6e 65 73 20 | 74 6f 20 70 69 63 6b 20 |Defines |to pick |
|00000570| 74 68 65 6d 20 6f 75 74 | 0d 2f 2f 20 6f 66 20 74 |them out|.// of t|
|00000580| 68 65 20 75 6e 69 6f 6e | 20 61 72 65 20 64 65 66 |he union| are def|
|00000590| 69 6e 65 64 20 68 65 72 | 65 2c 20 77 69 74 68 20 |ined her|e, with |
|000005a0| 74 68 65 69 72 20 73 74 | 72 75 63 74 75 72 65 73 |their st|ructures|
|000005b0| 2e 0d 23 64 65 66 69 6e | 65 20 6b 54 72 61 70 50 |..#defin|e kTrapP|
|000005c0| 61 74 63 68 54 79 70 65 | 09 09 09 09 31 09 09 09 |atchType|....1...|
|000005d0| 09 09 09 2f 2f 20 41 20 | 54 72 61 70 20 50 61 74 |...// A |Trap Pat|
|000005e0| 63 68 0d 23 64 65 66 69 | 6e 65 20 6b 47 65 73 74 |ch.#defi|ne kGest|
|000005f0| 61 6c 74 53 65 6c 65 63 | 74 6f 72 54 79 70 65 09 |altSelec|torType.|
|00000600| 09 32 09 09 09 09 09 09 | 2f 2f 20 41 20 47 65 73 |.2......|// A Ges|
|00000610| 74 61 6c 74 20 53 65 6c | 65 63 74 6f 72 0d 23 64 |talt Sel|ector.#d|
|00000620| 65 66 69 6e 65 20 6b 53 | 68 75 74 64 6f 77 6e 54 |efine kS|hutdownT|
|00000630| 61 73 6b 54 79 70 65 09 | 09 09 33 09 09 09 09 09 |askType.|..3.....|
|00000640| 09 2f 2f 20 41 20 53 68 | 75 74 64 6f 77 6e 20 54 |.// A Sh|utdown T|
|00000650| 61 73 6b 0d 23 64 65 66 | 69 6e 65 20 6b 56 42 4c |ask.#def|ine kVBL|
|00000660| 54 61 73 6b 54 79 70 65 | 09 09 09 09 34 09 09 09 |TaskType|....4...|
|00000670| 09 09 09 2f 2f 20 41 20 | 56 42 4c 20 54 61 73 6b |...// A |VBL Task|
|00000680| 0d 23 64 65 66 69 6e 65 | 20 6b 4c 6f 77 4d 65 6d |.#define| kLowMem|
|00000690| 46 69 6c 74 65 72 54 79 | 70 65 09 09 09 35 09 09 |FilterTy|pe...5..|
|000006a0| 09 09 09 09 2f 2f 20 41 | 20 6c 6f 77 2d 6d 65 6d |....// A| low-mem|
|000006b0| 20 66 69 6c 74 65 72 0d | 23 64 65 66 69 6e 65 20 | filter.|#define |
|000006c0| 6b 43 6f 64 65 42 6c 6f | 63 6b 54 79 70 65 09 09 |kCodeBlo|ckType..|
|000006d0| 09 09 36 09 09 09 09 09 | 09 2f 2f 20 41 20 62 6c |..6.....|.// A bl|
|000006e0| 6f 63 6b 20 6f 66 20 63 | 6f 64 65 0d 23 64 65 66 |ock of c|ode.#def|
|000006f0| 69 6e 65 20 6b 54 69 6d | 65 4d 61 6e 61 67 65 72 |ine kTim|eManager|
|00000700| 54 61 73 6b 54 79 70 65 | 09 09 37 09 09 09 09 09 |TaskType|..7.....|
|00000710| 09 2f 2f 20 41 20 54 69 | 6d 65 20 4d 61 6e 61 67 |.// A Ti|me Manag|
|00000720| 65 72 20 54 61 73 6b 0d | 0d 0d 0d 0d 2f 2f 20 54 |er Task.|....// T|
|00000730| 72 61 70 50 61 74 63 68 | 20 69 6e 66 6f 72 6d 61 |rapPatch| informa|
|00000740| 74 69 6f 6e 2e 20 54 72 | 61 70 20 50 61 74 63 68 |tion. Tr|ap Patch|
|00000750| 65 73 20 6e 65 65 64 20 | 74 6f 20 68 6f 6c 64 20 |es need |to hold |
|00000760| 74 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 74 68 |the numb|er of th|
|00000770| 65 0d 2f 2f 20 74 72 61 | 70 20 74 6f 20 70 61 74 |e.// tra|p to pat|
|00000780| 63 68 2e 20 59 6f 75 72 | 20 45 53 20 48 61 6e 64 |ch. Your| ES Hand|
|00000790| 6c 65 72 20 69 73 20 72 | 65 73 70 6f 6e 73 69 62 |ler is r|esponsib|
|000007a0| 6c 65 20 66 6f 72 20 65 | 6e 73 75 72 69 6e 67 20 |le for e|nsuring |
|000007b0| 74 68 61 74 20 74 68 65 | 0d 2f 2f 20 74 72 61 70 |that the|.// trap|
|000007c0| 20 69 73 20 69 6d 70 6c | 65 6d 65 6e 74 65 64 2e | is impl|emented.|
|000007d0| 20 49 66 20 79 6f 75 27 | 72 65 20 70 61 74 63 68 | If you'|re patch|
|000007e0| 69 6e 67 20 73 6f 6d 65 | 74 68 69 6e 67 20 72 65 |ing some|thing re|
|000007f0| 61 6c 6c 79 20 6e 65 77 | 2c 20 79 6f 75 0d 2f 2f |ally new|, you.//|
|00000800| 20 6e 65 65 64 20 74 6f | 20 62 65 20 61 77 61 72 | need to| be awar|
|00000810| 65 20 6f 66 20 74 68 69 | 73 2e 20 54 68 65 20 49 |e of thi|s. The I|
|00000820| 73 54 72 61 70 41 76 61 | 69 6c 61 62 6c 65 20 72 |sTrapAva|ilable r|
|00000830| 6f 75 74 69 6e 65 20 69 | 73 20 70 72 6f 76 69 64 |outine i|s provid|
|00000840| 65 64 0d 2f 2f 20 66 6f | 72 20 79 6f 75 20 74 6f |ed.// fo|r you to|
|00000850| 20 74 65 73 74 20 66 6f | 72 20 74 68 65 20 70 72 | test fo|r the pr|
|00000860| 65 73 65 6e 63 65 20 6f | 66 20 61 20 74 72 61 70 |esence o|f a trap|
|00000870| 2e 0d 74 79 70 65 64 65 | 66 20 73 74 72 75 63 74 |..typede|f struct|
|00000880| 20 7b 0d 09 69 6e 74 09 | 09 09 09 74 72 61 70 4e | {..int.|...trapN|
|00000890| 75 6d 3b 0d 7d 20 41 54 | 72 61 70 50 61 74 63 68 |um;.} AT|rapPatch|
|000008a0| 3b 0d 0d 0d 0d 2f 2f 20 | 47 65 73 74 61 6c 74 20 |;....// |Gestalt |
|000008b0| 73 65 6c 65 63 74 6f 72 | 73 20 6d 61 79 20 77 61 |selector|s may wa|
|000008c0| 6e 74 20 74 6f 20 6f 76 | 65 72 72 69 64 65 20 65 |nt to ov|erride e|
|000008d0| 78 69 73 74 69 6e 67 20 | 73 65 6c 65 63 74 6f 72 |xisting |selector|
|000008e0| 73 2e 20 54 68 65 6e 20 | 61 67 61 69 6e 2c 0d 2f |s. Then |again,./|
|000008f0| 2f 20 74 68 65 79 20 6d | 61 79 20 6e 6f 74 20 2d |/ they m|ay not -|
|00000900| 20 73 65 74 20 74 68 65 | 20 4f 76 65 72 77 72 69 | set the| Overwri|
|00000910| 74 65 45 78 69 73 74 69 | 6e 67 53 65 6c 65 63 74 |teExisti|ngSelect|
|00000920| 6f 72 20 66 69 65 6c 64 | 20 61 63 63 6f 72 64 69 |or field| accordi|
|00000930| 6e 67 6c 79 2e 0d 2f 2f | 20 74 68 65 53 65 6c 65 |ngly..//| theSele|
|00000940| 63 74 6f 72 20 69 73 20 | 74 68 65 20 47 65 73 74 |ctor is |the Gest|
|00000950| 61 6c 74 20 74 79 70 65 | 20 66 6f 72 20 74 68 65 |alt type| for the|
|00000960| 20 73 65 6c 65 63 74 6f | 72 2e 0d 74 79 70 65 64 | selecto|r..typed|
|00000970| 65 66 20 73 74 72 75 63 | 74 20 7b 0d 09 4f 53 54 |ef struc|t {..OST|
|00000980| 79 70 65 09 09 09 74 68 | 65 53 65 6c 65 63 74 6f |ype...th|eSelecto|
|00000990| 72 3b 0d 09 42 6f 6f 6c | 65 61 6e 09 09 09 6f 76 |r;..Bool|ean...ov|
|000009a0| 65 72 77 72 69 74 65 45 | 78 69 73 74 69 6e 67 53 |erwriteE|xistingS|
|000009b0| 65 6c 65 63 74 6f 72 3b | 0d 7d 20 41 47 65 73 74 |elector;|.} AGest|
|000009c0| 61 6c 74 53 65 6c 65 63 | 74 6f 72 3b 0d 0d 0d 0d |altSelec|tor;....|
|000009d0| 2f 2f 20 53 68 75 74 64 | 6f 77 6e 20 74 61 73 6b |// Shutd|own task|
|000009e0| 73 20 63 61 6e 20 70 61 | 73 73 20 69 6e 20 73 6f |s can pa|ss in so|
|000009f0| 6d 65 20 66 6c 61 67 73 | 20 2d 20 64 65 66 69 6e |me flags| - defin|
|00000a00| 65 64 20 69 6e 20 53 68 | 75 74 64 6f 77 6e 2e 68 |ed in Sh|utdown.h|
|00000a10| 0d 74 79 70 65 64 65 66 | 20 73 74 72 75 63 74 20 |.typedef| struct |
|00000a20| 7b 0d 09 73 68 6f 72 74 | 09 09 09 74 68 65 46 6c |{..short|...theFl|
|00000a30| 61 67 73 3b 0d 7d 20 41 | 53 68 75 74 64 6f 77 6e |ags;.} A|Shutdown|
|00000a40| 54 61 73 6b 3b 0d 0d 0d | 0d 2f 2f 20 49 6e 66 6f |Task;...|.// Info|
|00000a50| 72 6d 61 74 69 6f 6e 20 | 66 6f 72 20 61 20 56 42 |rmation |for a VB|
|00000a60| 4c 20 74 61 73 6b 2e 0d | 74 79 70 65 64 65 66 20 |L task..|typedef |
|00000a70| 73 74 72 75 63 74 20 7b | 0d 20 20 20 20 73 68 6f |struct {|. sho|
|00000a80| 72 74 09 09 09 76 62 6c | 43 6f 75 6e 74 3b 0d 20 |rt...vbl|Count;. |
|00000a90| 20 20 20 73 68 6f 72 74 | 09 09 09 76 62 6c 50 68 | short|...vblPh|
|00000aa0| 61 73 65 3b 0d 7d 20 41 | 56 42 4c 54 61 73 6b 3b |ase;.} A|VBLTask;|
|00000ab0| 0d 0d 0d 0d 2f 2f 20 49 | 6e 66 6f 72 6d 61 74 69 |....// I|nformati|
|00000ac0| 6f 6e 20 66 6f 72 20 61 | 20 6c 6f 77 2d 6d 65 6d |on for a| low-mem|
|00000ad0| 20 66 69 6c 74 65 72 2e | 20 57 65 20 6e 65 65 64 | filter.| We need|
|00000ae0| 20 74 6f 20 68 6f 6c 64 | 20 74 68 65 20 61 64 64 | to hold| the add|
|00000af0| 72 65 73 73 20 6f 66 20 | 74 68 65 0d 2f 2f 20 66 |ress of |the.// f|
|00000b00| 69 6c 74 65 72 20 74 6f | 20 68 6f 6f 6b 20 6f 75 |ilter to| hook ou|
|00000b10| 72 73 65 6c 76 65 73 20 | 69 6e 74 6f 2e 0d 74 79 |rselves |into..ty|
|00000b20| 70 65 64 65 66 20 73 74 | 72 75 63 74 20 7b 0d 20 |pedef st|ruct {. |
|00000b30| 20 20 20 6c 6f 6e 67 09 | 09 09 74 68 65 45 6e 74 | long.|..theEnt|
|00000b40| 72 79 50 6f 69 6e 74 3b | 0d 7d 20 41 4c 6f 77 4d |ryPoint;|.} ALowM|
|00000b50| 65 6d 46 69 6c 74 65 72 | 3b 0d 0d 0d 0d 2f 2f 20 |emFilter|;....// |
|00000b60| 49 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 66 6f 72 20 |Informat|ion for |
|00000b70| 61 20 62 6c 6f 63 6b 20 | 6f 66 20 63 6f 64 65 2e |a block |of code.|
|00000b80| 20 57 65 20 64 6f 6e 27 | 74 20 61 63 74 75 61 6c | We don'|t actual|
|00000b90| 6c 79 20 6e 65 65 64 20 | 61 6e 79 74 68 69 6e 67 |ly need |anything|
|00000ba0| 2c 0d 2f 2f 20 62 75 74 | 20 77 65 20 63 61 6e 27 |,.// but| we can'|
|00000bb0| 74 20 63 6f 6d 70 69 6c | 65 20 69 74 20 77 69 74 |t compil|e it wit|
|00000bc0| 68 6f 75 74 20 61 6c 6c | 6f 63 61 74 69 6e 67 20 |hout all|ocating |
|00000bd0| 73 6f 6d 65 20 6d 65 6d | 62 65 72 73 2e 0d 74 79 |some mem|bers..ty|
|00000be0| 70 65 64 65 66 20 73 74 | 72 75 63 74 20 7b 0d 09 |pedef st|ruct {..|
|00000bf0| 73 68 6f 72 74 09 09 09 | 72 65 73 65 72 76 65 64 |short...|reserved|
|00000c00| 3b 0d 7d 20 41 43 6f 64 | 65 42 6c 6f 63 6b 3b 0d |;.} ACod|eBlock;.|
|00000c10| 0d 0d 0d 2f 2f 20 49 6e | 66 6f 72 6d 61 74 69 6f |...// In|formatio|
|00000c20| 6e 20 66 6f 72 20 61 20 | 54 69 6d 65 20 4d 61 6e |n for a |Time Man|
|00000c30| 61 67 65 72 20 74 61 73 | 6b 2e 20 57 65 20 6e 65 |ager tas|k. We ne|
|00000c40| 65 64 20 74 6f 20 68 6f | 6c 64 20 74 68 65 20 74 |ed to ho|ld the t|
|00000c50| 69 6d 65 20 28 69 6e 0d | 2f 2f 20 6d 69 6c 6c 69 |ime (in.|// milli|
|00000c60| 73 65 63 6f 6e 64 73 29 | 20 62 65 66 6f 72 65 20 |seconds)| before |
|00000c70| 74 68 65 20 74 61 73 6b | 20 69 73 20 66 69 72 73 |the task| is firs|
|00000c80| 74 20 65 78 65 63 75 74 | 65 64 2e 0d 74 79 70 65 |t execut|ed..type|
|00000c90| 64 65 66 20 73 74 72 75 | 63 74 20 7b 0d 09 6c 6f |def stru|ct {..lo|
|00000ca0| 6e 67 09 09 09 74 68 65 | 44 65 6c 61 79 3b 0d 7d |ng...the|Delay;.}|
|00000cb0| 20 41 54 69 6d 65 4d 61 | 6e 61 67 65 72 54 61 73 | ATimeMa|nagerTas|
|00000cc0| 6b 3b 0d 0d 0d 0d 0d 2f | 2f 20 45 61 63 68 20 69 |k;...../|/ Each i|
|00000cd0| 6e 73 74 61 6c 6c 61 62 | 6c 65 20 27 74 68 69 6e |nstallab|le 'thin|
|00000ce0| 67 27 20 69 73 20 73 70 | 65 63 69 66 69 65 64 20 |g' is sp|ecified |
|00000cf0| 76 69 61 20 61 20 43 6f | 64 65 49 6e 66 6f 20 73 |via a Co|deInfo s|
|00000d00| 74 72 75 63 74 75 72 65 | 2e 20 54 68 69 73 20 68 |tructure|. This h|
|00000d10| 6f 6c 64 73 0d 2f 2f 20 | 74 68 65 20 72 65 73 6f |olds.// |the reso|
|00000d20| 75 72 63 65 20 74 79 70 | 65 20 61 6e 64 20 69 64 |urce typ|e and id|
|00000d30| 20 6f 66 20 74 68 65 20 | 63 6f 64 65 20 72 65 73 | of the |code res|
|00000d40| 6f 75 72 63 65 20 28 65 | 2e 67 2e 20 27 43 4f 44 |ource (e|.g. 'COD|
|00000d50| 45 27 2c 20 61 6e 64 20 | 31 30 30 30 29 2c 0d 2f |E', and |1000),./|
|00000d60| 2f 20 61 73 20 77 65 6c | 6c 20 61 73 20 61 20 43 |/ as wel|l as a C|
|00000d70| 6f 64 65 54 79 70 65 20 | 66 69 65 6c 64 2e 20 54 |odeType |field. T|
|00000d80| 6f 20 73 61 76 65 20 73 | 70 61 63 65 2c 20 74 68 |o save s|pace, th|
|00000d90| 65 20 63 6f 64 65 2d 73 | 70 65 63 69 66 69 63 20 |e code-s|pecific |
|00000da0| 64 65 74 61 69 6c 73 20 | 61 72 65 0d 2f 2f 20 6d |details |are.// m|
|00000db0| 65 72 67 65 64 20 69 6e | 20 61 20 75 6e 69 6f 6e |erged in| a union|
|00000dc0| 20 74 79 70 65 2c 20 77 | 69 74 68 20 74 68 65 20 | type, w|ith the |
|00000dd0| 43 6f 64 65 54 79 70 65 | 20 66 69 65 6c 64 20 62 |CodeType| field b|
|00000de0| 65 69 6e 67 20 75 73 65 | 64 20 74 6f 20 73 70 65 |eing use|d to spe|
|00000df0| 63 69 66 79 20 74 68 65 | 0d 2f 2f 20 63 6f 6e 74 |cify the|.// cont|
|00000e00| 65 6e 74 73 20 6f 66 20 | 54 68 65 43 6f 64 65 54 |ents of |TheCodeT|
|00000e10| 68 69 6e 67 2e 20 54 68 | 65 41 64 64 72 65 73 73 |hing. Th|eAddress|
|00000e20| 20 69 73 20 61 6e 20 69 | 6e 74 65 72 6e 61 6c 20 | is an i|nternal |
|00000e30| 45 78 74 65 6e 73 69 6f | 6e 20 53 68 65 6c 6c 20 |Extensio|n Shell |
|00000e40| 66 69 65 6c 64 2c 0d 2f | 2f 20 75 73 65 64 20 74 |field,./|/ used t|
|00000e50| 6f 20 68 6f 6c 64 20 74 | 68 65 20 61 64 64 72 65 |o hold t|he addre|
|00000e60| 73 73 20 6f 66 20 74 68 | 65 20 74 68 69 6e 67 20 |ss of th|e thing |
|00000e70| 69 6e 73 74 61 6c 6c 65 | 64 2f 74 68 65 20 74 68 |installe|d/the th|
|00000e80| 69 6e 67 20 69 74 20 72 | 65 70 6c 61 63 65 64 2e |ing it r|eplaced.|
|00000e90| 0d 2f 2f 20 54 68 69 73 | 20 66 69 65 6c 64 20 69 |.// This| field i|
|00000ea0| 73 20 72 65 73 65 72 76 | 65 64 20 66 6f 72 20 75 |s reserv|ed for u|
|00000eb0| 73 65 20 62 79 20 45 78 | 74 65 6e 73 69 6f 6e 20 |se by Ex|tension |
|00000ec0| 53 68 65 6c 6c 2e 0d 74 | 79 70 65 64 65 66 20 73 |Shell..t|ypedef s|
|00000ed0| 74 72 75 63 74 20 7b 0d | 09 4f 53 54 79 70 65 09 |truct {.|.OSType.|
|00000ee0| 09 09 72 65 73 54 79 70 | 65 3b 09 09 09 09 09 09 |..resTyp|e;......|
|00000ef0| 09 09 09 2f 2f 20 52 65 | 73 6f 75 72 63 65 20 74 |...// Re|source t|
|00000f00| 79 70 65 20 6f 66 20 74 | 68 69 6e 67 0d 09 69 6e |ype of t|hing..in|
|00000f10| 74 09 09 09 09 72 65 73 | 49 44 3b 09 09 09 09 09 |t....res|ID;.....|
|00000f20| 09 09 09 09 09 2f 2f 20 | 52 65 73 6f 75 72 63 65 |.....// |Resource|
|00000f30| 20 49 44 20 6f 66 20 74 | 68 69 6e 67 0d 09 69 6e | ID of t|hing..in|
|00000f40| 74 09 09 09 09 63 6f 64 | 65 54 79 70 65 3b 09 09 |t....cod|eType;..|
|00000f50| 09 09 09 09 09 09 09 2f | 2f 20 54 79 70 65 20 6f |......./|/ Type o|
|00000f60| 66 20 74 68 69 73 20 74 | 68 69 6e 67 0d 09 75 6e |f this t|hing..un|
|00000f70| 69 6f 6e 09 09 09 7b 0d | 09 09 09 09 09 41 54 72 |ion...{.|.....ATr|
|00000f80| 61 70 50 61 74 63 68 09 | 09 09 74 68 65 54 72 61 |apPatch.|..theTra|
|00000f90| 70 50 61 74 63 68 3b 0d | 09 09 09 09 09 41 47 65 |pPatch;.|.....AGe|
|00000fa0| 73 74 61 6c 74 53 65 6c | 65 63 74 6f 72 09 74 68 |staltSel|ector.th|
|00000fb0| 65 47 65 73 74 61 6c 74 | 53 65 6c 65 63 74 6f 72 |eGestalt|Selector|
|00000fc0| 3b 0d 09 09 09 09 09 41 | 53 68 75 74 64 6f 77 6e |;......A|Shutdown|
|00000fd0| 54 61 73 6b 09 09 74 68 | 65 53 68 75 74 64 6f 77 |Task..th|eShutdow|
|00000fe0| 6e 54 61 73 6b 3b 0d 09 | 09 09 09 09 41 56 42 4c |nTask;..|....AVBL|
|00000ff0| 54 61 73 6b 09 09 09 74 | 68 65 56 42 4c 54 61 73 |Task...t|heVBLTas|
|00001000| 6b 3b 0d 09 09 09 09 09 | 41 4c 6f 77 4d 65 6d 46 |k;......|ALowMemF|
|00001010| 69 6c 74 65 72 09 09 74 | 68 65 4c 6f 77 4d 65 6d |ilter..t|heLowMem|
|00001020| 46 69 6c 74 65 72 3b 0d | 09 09 09 09 09 41 43 6f |Filter;.|.....ACo|
|00001030| 64 65 42 6c 6f 63 6b 09 | 09 09 74 68 65 43 6f 64 |deBlock.|..theCod|
|00001040| 65 42 6c 6f 63 6b 3b 0d | 09 09 09 09 09 41 54 69 |eBlock;.|.....ATi|
|00001050| 6d 65 4d 61 6e 61 67 65 | 72 54 61 73 6b 09 74 68 |meManage|rTask.th|
|00001060| 65 54 69 6d 65 4d 61 6e | 61 67 65 72 54 61 73 6b |eTimeMan|agerTask|
|00001070| 3b 0d 09 09 09 09 09 7d | 20 74 68 65 43 6f 64 65 |;......}| theCode|
|00001080| 54 68 69 6e 67 3b 09 09 | 09 09 09 09 09 09 2f 2f |Thing;..|......//|
|00001090| 20 53 70 65 63 69 66 69 | 63 20 64 65 74 61 69 6c | Specifi|c detail|
|000010a0| 73 20 66 6f 72 20 74 68 | 69 73 20 74 68 69 6e 67 |s for th|is thing|
|000010b0| 0d 09 50 74 72 09 09 09 | 09 74 68 65 41 64 64 72 |..Ptr...|.theAddr|
|000010c0| 65 73 73 3b 09 09 09 09 | 09 09 09 09 09 2f 2f 20 |ess;....|.....// |
|000010d0| 52 45 53 45 52 56 45 44 | 20 66 6f 72 20 45 78 74 |RESERVED| for Ext|
|000010e0| 65 6e 73 69 6f 6e 20 53 | 68 65 6c 6c 0d 7d 20 43 |ension S|hell.} C|
|000010f0| 6f 64 65 49 6e 66 6f 3b | 0d 0d 0d 0d 0d 2f 2f 20 |odeInfo;|.....// |
|00001100| 54 68 65 20 50 61 72 61 | 6d 42 6c 6f 63 6b 2e 20 |The Para|mBlock. |
|00001110| 41 6c 6c 20 63 6f 6d 6d | 75 6e 69 63 61 74 69 6f |All comm|unicatio|
|00001120| 6e 20 62 65 74 77 65 65 | 6e 20 79 6f 75 72 20 63 |n betwee|n your c|
|00001130| 6f 64 65 20 61 6e 64 20 | 45 78 74 65 6e 73 69 6f |ode and |Extensio|
|00001140| 6e 20 53 68 65 6c 6c 20 | 69 73 20 64 6f 6e 65 0d |n Shell |is done.|
|00001150| 2f 2f 20 74 68 72 6f 75 | 67 68 20 61 20 70 6f 69 |// throu|gh a poi|
|00001160| 6e 74 65 72 20 74 6f 20 | 6f 6e 65 20 6f 66 20 74 |nter to |one of t|
|00001170| 68 65 73 65 20 73 74 72 | 75 63 74 75 72 65 73 2e |hese str|uctures.|
|00001180| 20 52 65 6c 65 76 65 6e | 74 20 73 65 63 74 69 6f | Releven|t sectio|
|00001190| 6e 73 20 61 72 65 20 67 | 72 6f 75 70 65 64 0d 2f |ns are g|rouped./|
|000011a0| 2f 20 74 6f 67 65 74 68 | 65 72 2e 0d 74 79 70 65 |/ togeth|er..type|
|000011b0| 64 65 66 20 73 74 72 75 | 63 74 20 7b 0d 09 2f 2f |def stru|ct {..//|
|000011c0| 20 47 65 6e 65 72 61 6c | 20 76 61 72 69 61 62 6c | General| variabl|
|000011d0| 65 73 2e 20 54 68 65 20 | 53 79 73 74 65 6d 20 56 |es. The |System V|
|000011e0| 65 72 73 69 6f 6e 20 68 | 6f 6c 64 73 20 37 2e 30 |ersion h|olds 7.0|
|000011f0| 2e 30 20 61 73 20 30 78 | 30 37 30 30 2c 20 37 2e |.0 as 0x|0700, 7.|
|00001200| 30 2e 31 20 61 73 20 30 | 78 30 37 30 31 2c 0d 09 |0.1 as 0|x0701,..|
|00001210| 2f 2f 20 65 74 63 2e 20 | 49 73 54 72 61 70 41 76 |// etc. |IsTrapAv|
|00001220| 61 69 6c 61 62 6c 65 20 | 69 73 20 70 72 6f 76 69 |ailable |is provi|
|00001230| 64 65 64 20 73 6f 20 74 | 68 61 74 20 79 6f 75 20 |ded so t|hat you |
|00001240| 63 61 6e 20 74 65 73 74 | 20 66 6f 72 20 74 68 65 |can test| for the|
|00001250| 20 70 72 65 73 65 6e 63 | 65 20 6f 66 0d 09 2f 2f | presenc|e of..//|
|00001260| 20 74 72 61 70 73 20 62 | 65 66 6f 72 65 20 61 74 | traps b|efore at|
|00001270| 74 65 6d 70 74 69 6e 67 | 20 74 6f 20 70 61 74 63 |tempting| to patc|
|00001280| 68 20 74 68 65 6d 20 6f | 75 74 2e 20 55 73 65 72 |h them o|ut. User|
|00001290| 46 6f 72 63 65 64 44 69 | 73 61 62 6c 65 20 72 65 |ForcedDi|sable re|
|000012a0| 74 75 72 6e 73 20 74 72 | 75 65 20 69 66 0d 09 2f |turns tr|ue if../|
|000012b0| 2f 20 74 68 65 20 6b 65 | 79 20 63 6f 72 72 65 73 |/ the ke|y corres|
|000012c0| 70 6f 6e 64 69 6e 67 20 | 74 6f 20 4b 65 79 43 6f |ponding |to KeyCo|
|000012d0| 64 65 20 28 30 78 33 38 | 20 66 6f 72 20 53 68 69 |de (0x38| for Shi|
|000012e0| 66 74 2c 20 65 74 63 29 | 20 69 73 20 70 72 65 73 |ft, etc)| is pres|
|000012f0| 73 65 64 2e 20 49 66 20 | 43 68 65 63 6b 4d 6f 75 |sed. If |CheckMou|
|00001300| 73 65 0d 09 2f 2f 20 69 | 73 20 74 72 75 65 2c 20 |se..// i|s true, |
|00001310| 69 74 20 77 69 6c 6c 20 | 61 6c 73 6f 20 72 65 74 |it will |also ret|
|00001320| 75 72 6e 20 74 72 75 65 | 20 69 66 20 74 68 65 20 |urn true| if the |
|00001330| 6d 6f 75 73 65 20 62 75 | 74 74 6f 6e 20 69 73 20 |mouse bu|tton is |
|00001340| 62 65 69 6e 67 20 68 65 | 6c 64 20 64 6f 77 6e 2e |being he|ld down.|
|00001350| 0d 09 6c 6f 6e 67 09 09 | 09 73 79 73 74 65 6d 56 |..long..|.systemV|
|00001360| 65 72 73 69 6f 6e 3b 0d | 09 70 61 73 63 61 6c 20 |ersion;.|.pascal |
|00001370| 42 6f 6f 6c 65 61 6e 09 | 28 2a 49 73 54 72 61 70 |Boolean.|(*IsTrap|
|00001380| 41 76 61 69 6c 61 62 6c | 65 29 28 69 6e 74 20 74 |Availabl|e)(int t|
|00001390| 72 61 70 4e 75 6d 29 3b | 0d 09 70 61 73 63 61 6c |rapNum);|..pascal|
|000013a0| 20 42 6f 6f 6c 65 61 6e | 09 28 2a 55 73 65 72 46 | Boolean|.(*UserF|
|000013b0| 6f 72 63 65 64 44 69 73 | 61 62 6c 65 29 28 73 68 |orcedDis|able)(sh|
|000013c0| 6f 72 74 20 6b 65 79 43 | 6f 64 65 2c 20 42 6f 6f |ort keyC|ode, Boo|
|000013d0| 6c 65 61 6e 20 63 68 65 | 63 6b 4d 6f 75 73 65 29 |lean che|ckMouse)|
|000013e0| 3b 0d 09 0d 09 0d 09 0d | 09 2f 2f 20 4e 75 6d 49 |;.......|.// NumI|
|000013f0| 63 6f 6e 73 20 63 6f 6e | 74 61 69 6e 73 20 74 68 |cons con|tains th|
|00001400| 65 20 61 6d 6f 75 6e 74 | 20 6f 66 20 76 61 6c 69 |e amount| of vali|
|00001410| 64 20 65 6e 74 72 69 65 | 73 20 69 6e 20 54 68 65 |d entrie|s in The|
|00001420| 49 63 6f 6e 73 2e 20 53 | 65 74 20 69 74 20 74 6f |Icons. S|et it to|
|00001430| 20 30 20 69 66 0d 09 2f | 2f 20 74 68 65 72 65 20 | 0 if../|/ there |
|00001440| 61 72 65 20 6e 6f 20 69 | 63 6f 6e 73 2c 20 61 6e |are no i|cons, an|
|00001450| 64 20 61 20 76 61 6c 75 | 65 20 66 72 6f 6d 20 31 |d a valu|e from 1|
|00001460| 2e 2e 6b 4d 61 78 4e 75 | 6d 49 63 6f 6e 73 20 6f |..kMaxNu|mIcons o|
|00001470| 74 68 65 72 77 69 73 65 | 2e 20 54 68 65 20 76 61 |therwise|. The va|
|00001480| 6c 75 65 0d 09 2f 2f 20 | 69 6e 20 74 68 65 20 61 |lue..// |in the a|
|00001490| 72 72 61 79 20 63 6f 72 | 72 65 73 70 6f 6e 64 73 |rray cor|responds|
|000014a0| 20 74 6f 20 74 68 65 20 | 72 65 73 6f 75 72 63 65 | to the |resource|
|000014b0| 20 49 44 20 6f 66 20 61 | 6e 20 49 63 6f 6e 20 46 | ID of a|n Icon F|
|000014c0| 61 6d 69 6c 79 20 28 27 | 49 43 4e 23 27 2c 0d 09 |amily ('|ICN#',..|
|000014d0| 2f 2f 20 27 69 63 6c 38 | 27 2c 20 61 6e 64 20 27 |// 'icl8|', and '|
|000014e0| 69 63 6c 34 27 29 2e 20 | 49 66 20 74 68 65 20 69 |icl4'). |If the i|
|000014f0| 63 6f 6e 20 63 61 6e 27 | 74 20 62 65 20 66 6f 75 |con can'|t be fou|
|00001500| 6e 64 2c 20 69 74 20 77 | 6f 6e 27 74 20 62 65 20 |nd, it w|on't be |
|00001510| 70 6c 6f 74 74 65 64 2e | 0d 09 2f 2f 20 41 6e 69 |plotted.|..// Ani|
|00001520| 6d 61 74 69 6f 6e 44 65 | 6c 61 79 20 69 73 20 74 |mationDe|lay is t|
|00001530| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 54 69 63 |he numbe|r of Tic|
|00001540| 6b 73 20 74 6f 20 64 65 | 6c 61 79 20 62 65 74 77 |ks to de|lay betw|
|00001550| 65 65 6e 20 73 68 6f 77 | 69 6e 67 20 65 61 63 68 |een show|ing each|
|00001560| 0d 09 2f 2f 20 69 63 6f | 6e 2e 20 49 66 20 79 6f |..// ico|n. If yo|
|00001570| 75 20 61 72 65 20 6f 6e | 6c 79 20 73 68 6f 77 69 |u are on|ly showi|
|00001580| 6e 67 20 6f 6e 65 20 69 | 63 6f 6e 2c 20 73 65 74 |ng one i|con, set|
|00001590| 20 74 68 69 73 20 74 6f | 20 30 2e 20 42 79 20 64 | this to| 0. By d|
|000015a0| 65 66 61 75 6c 74 2c 0d | 09 2f 2f 20 45 78 74 65 |efault,.|.// Exte|
|000015b0| 6e 73 69 6f 6e 20 53 68 | 65 6c 6c 20 69 6e 69 74 |nsion Sh|ell init|
|000015c0| 69 61 6c 69 73 65 73 20 | 4e 75 6d 49 63 6f 6e 73 |ialises |NumIcons|
|000015d0| 20 74 6f 20 30 20 61 6e | 64 20 41 6e 69 6d 61 74 | to 0 an|d Animat|
|000015e0| 69 6f 6e 44 65 6c 61 79 | 20 74 6f 20 33 2e 0d 09 |ionDelay| to 3...|
|000015f0| 69 6e 74 09 09 09 09 6e | 75 6d 49 63 6f 6e 73 3b |int....n|umIcons;|
|00001600| 0d 09 69 6e 74 09 09 09 | 09 61 6e 69 6d 61 74 69 |..int...|.animati|
|00001610| 6f 6e 44 65 6c 61 79 3b | 0d 09 69 6e 74 09 09 09 |onDelay;|..int...|
|00001620| 09 74 68 65 49 63 6f 6e | 73 5b 6b 4d 61 78 4e 75 |.theIcon|s[kMaxNu|
|00001630| 6d 49 63 6f 6e 73 2b 31 | 5d 3b 0d 09 0d 09 0d 09 |mIcons+1|];......|
|00001640| 0d 09 2f 2f 20 54 68 65 | 20 63 6f 64 65 20 74 68 |..// The| code th|
|00001650| 61 74 20 69 73 20 74 6f | 20 62 65 20 69 6e 73 74 |at is to| be inst|
|00001660| 61 6c 6c 65 64 20 69 73 | 20 64 65 73 63 72 69 62 |alled is| describ|
|00001670| 65 64 20 69 6e 20 54 68 | 65 43 6f 64 65 52 65 73 |ed in Th|eCodeRes|
|00001680| 6f 75 72 63 65 73 2e 0d | 09 2f 2f 20 4e 75 6d 43 |ources..|.// NumC|
|00001690| 6f 64 65 52 65 73 6f 75 | 72 63 65 73 20 63 6f 6e |odeResou|rces con|
|000016a0| 74 61 69 6e 73 20 74 68 | 65 20 61 6d 6f 75 6e 74 |tains th|e amount|
|000016b0| 20 6f 66 20 76 61 6c 69 | 64 20 65 6e 74 72 69 65 | of vali|d entrie|
|000016c0| 73 20 69 6e 20 54 68 65 | 43 6f 64 65 52 65 73 6f |s in The|CodeReso|
|000016d0| 75 72 63 65 73 2c 0d 09 | 2f 2f 20 61 73 20 69 6e |urces,..|// as in|
|000016e0| 20 4e 75 6d 49 63 6f 6e | 73 20 61 6e 64 20 54 68 | NumIcon|s and Th|
|000016f0| 65 49 63 6f 6e 73 5b 5d | 2e 20 49 66 20 61 6e 20 |eIcons[]|. If an |
|00001700| 41 64 64 72 65 73 73 54 | 61 62 6c 65 20 69 73 20 |AddressT|able is |
|00001710| 74 6f 20 62 65 20 69 6e | 73 74 61 6c 6c 65 64 2c |to be in|stalled,|
|00001720| 20 73 65 74 0d 09 2f 2f | 20 49 6e 73 74 61 6c 6c | set..//| Install|
|00001730| 41 64 64 72 65 73 73 54 | 61 62 6c 65 20 74 6f 20 |AddressT|able to |
|00001740| 74 72 75 65 2c 20 61 6e | 64 20 70 72 6f 76 69 64 |true, an|d provid|
|00001750| 65 20 74 68 65 20 64 65 | 73 69 72 65 64 20 47 65 |e the de|sired Ge|
|00001760| 73 74 61 6c 74 20 53 65 | 6c 65 63 74 6f 72 0d 09 |stalt Se|lector..|
|00001770| 2f 2f 20 69 6e 20 41 64 | 64 72 65 73 73 54 61 62 |// in Ad|dressTab|
|00001780| 6c 65 53 65 6c 65 63 74 | 6f 72 2e 20 49 6e 20 74 |leSelect|or. In t|
|00001790| 68 65 20 65 76 65 6e 74 | 20 6f 66 20 61 6e 20 65 |he event| of an e|
|000017a0| 72 72 6f 72 2c 20 45 72 | 72 6f 72 49 6e 64 65 78 |rror, Er|rorIndex|
|000017b0| 20 77 69 6c 6c 20 63 6f | 6e 74 61 69 6e 0d 09 2f | will co|ntain../|
|000017c0| 2f 20 74 68 65 20 65 6e | 74 72 79 20 69 6e 20 54 |/ the en|try in T|
|000017d0| 68 65 43 6f 64 65 52 65 | 73 6f 75 72 63 65 73 20 |heCodeRe|sources |
|000017e0| 74 68 61 74 20 63 6f 75 | 6c 64 20 6e 6f 74 20 62 |that cou|ld not b|
|000017f0| 65 20 69 6e 73 74 61 6c | 6c 65 64 2e 20 54 68 65 |e instal|led. The|
|00001800| 45 72 72 20 77 69 6c 6c | 20 62 65 0d 09 2f 2f 20 |Err will| be..// |
|00001810| 73 65 74 20 74 6f 20 74 | 68 65 20 72 65 61 73 6f |set to t|he reaso|
|00001820| 6e 20 77 68 79 2e 20 42 | 79 20 64 65 66 61 75 6c |n why. B|y defaul|
|00001830| 74 2c 20 45 78 74 65 6e | 73 69 6f 6e 20 53 68 65 |t, Exten|sion She|
|00001840| 6c 6c 20 69 6e 69 74 69 | 61 6c 69 73 65 73 0d 09 |ll initi|alises..|
|00001850| 2f 2f 20 6e 75 6d 43 6f | 64 65 52 65 73 6f 75 72 |// numCo|deResour|
|00001860| 63 65 73 20 74 6f 20 30 | 2e 0d 09 42 6f 6f 6c 65 |ces to 0|...Boole|
|00001870| 61 6e 09 09 09 69 6e 73 | 74 61 6c 6c 41 64 64 72 |an...ins|tallAddr|
|00001880| 65 73 73 54 61 62 6c 65 | 3b 0d 09 4f 53 54 79 70 |essTable|;..OSTyp|
|00001890| 65 09 09 09 61 64 64 72 | 65 73 73 54 61 62 6c 65 |e...addr|essTable|
|000018a0| 53 65 6c 65 63 74 6f 72 | 3b 0d 09 69 6e 74 09 09 |Selector|;..int..|
|000018b0| 09 09 6e 75 6d 43 6f 64 | 65 52 65 73 6f 75 72 63 |..numCod|eResourc|
|000018c0| 65 73 3b 0d 09 43 6f 64 | 65 49 6e 66 6f 09 09 74 |es;..Cod|eInfo..t|
|000018d0| 68 65 43 6f 64 65 52 65 | 73 6f 75 72 63 65 73 5b |heCodeRe|sources[|
|000018e0| 6b 4d 61 78 4e 75 6d 43 | 6f 64 65 52 65 73 6f 75 |kMaxNumC|odeResou|
|000018f0| 72 63 65 73 2b 31 5d 3b | 0d 09 69 6e 74 09 09 09 |rces+1];|..int...|
|00001900| 09 65 72 72 6f 72 49 6e | 64 65 78 3b 0d 09 4f 53 |.errorIn|dex;..OS|
|00001910| 45 72 72 09 09 09 74 68 | 65 45 72 72 3b 0d 09 0d |Err...th|eErr;...|
|00001920| 09 0d 09 0d 09 2f 2f 20 | 49 6e 20 74 68 65 20 65 |.....// |In the e|
|00001930| 76 65 6e 74 20 6f 66 20 | 61 6e 20 65 72 72 6f 72 |vent of |an error|
|00001940| 2c 20 74 68 65 73 65 20 | 76 61 72 69 61 62 6c 65 |, these |variable|
|00001950| 73 20 61 72 65 20 75 73 | 65 64 20 74 6f 20 68 61 |s are us|ed to ha|
|00001960| 6e 64 6c 65 20 74 68 69 | 6e 67 73 2e 20 49 66 0d |ndle thi|ngs. If.|
|00001970| 09 2f 2f 20 52 65 6d 6f | 76 65 49 6e 73 74 61 6c |.// Remo|veInstal|
|00001980| 6c 65 64 43 6f 64 65 20 | 69 73 20 73 65 74 20 74 |ledCode |is set t|
|00001990| 6f 20 74 72 75 65 2c 20 | 45 78 74 65 6e 73 69 6f |o true, |Extensio|
|000019a0| 6e 53 68 65 6c 6c 20 77 | 69 6c 6c 20 61 74 74 65 |nShell w|ill atte|
|000019b0| 6d 70 74 20 74 6f 20 75 | 6e 69 6e 73 74 61 6c 6c |mpt to u|ninstall|
|000019c0| 0d 09 2f 2f 20 74 68 65 | 20 63 6f 64 65 20 69 74 |..// the| code it|
|000019d0| 20 68 61 73 20 61 6c 72 | 65 61 64 79 20 69 6e 73 | has alr|eady ins|
|000019e0| 74 61 6c 6c 65 64 2e 20 | 4e 6f 20 67 61 75 72 61 |talled. |No gaura|
|000019f0| 6e 74 65 65 20 69 73 20 | 6d 61 64 65 20 74 68 61 |ntee is |made tha|
|00001a00| 74 20 61 6c 6c 2c 20 69 | 66 20 61 6e 79 2c 0d 09 |t all, i|f any,..|
|00001a10| 2f 2f 20 6f 66 20 79 6f | 75 72 20 63 6f 64 65 20 |// of yo|ur code |
|00001a20| 77 69 6c 6c 20 62 65 20 | 72 65 6d 6f 76 65 64 2e |will be |removed.|
|00001a30| 0d 09 2f 2f 0d 09 2f 2f | 20 53 65 74 74 69 6e 67 |..//..//| Setting|
|00001a40| 20 42 65 65 70 4e 6f 77 | 20 74 6f 20 74 72 75 65 | BeepNow| to true|
|00001a50| 20 77 69 6c 6c 20 63 61 | 75 73 65 20 45 78 74 65 | will ca|use Exte|
|00001a60| 6e 73 69 6f 6e 53 68 65 | 6c 6c 20 74 6f 20 63 61 |nsionShe|ll to ca|
|00001a70| 6c 6c 20 53 79 73 42 65 | 65 70 28 33 30 29 2e 0d |ll SysBe|ep(30)..|
|00001a80| 09 2f 2f 20 49 66 20 50 | 6f 73 74 45 72 72 6f 72 |.// If P|ostError|
|00001a90| 20 69 73 20 74 72 75 65 | 2c 20 61 20 4e 6f 74 69 | is true|, a Noti|
|00001aa0| 66 69 63 61 74 69 6f 6e | 20 4d 61 6e 61 67 65 72 |fication| Manager|
|00001ab0| 20 6e 6f 74 65 20 77 69 | 6c 6c 20 62 65 20 70 6f | note wi|ll be po|
|00001ac0| 73 74 65 64 2e 0d 09 2f | 2f 20 45 72 72 6f 72 53 |sted.../|/ ErrorS|
|00001ad0| 74 72 69 6e 67 73 49 44 | 20 20 73 68 6f 75 6c 64 |tringsID| should|
|00001ae0| 20 62 65 20 73 65 74 20 | 74 6f 20 74 68 65 20 69 | be set |to the i|
|00001af0| 64 20 6f 66 20 74 68 65 | 20 27 53 54 52 23 27 20 |d of the| 'STR#' |
|00001b00| 72 65 73 6f 75 72 63 65 | 20 63 6f 6e 74 61 69 6e |resource| contain|
|00001b10| 69 6e 67 0d 09 2f 2f 20 | 79 6f 75 72 20 65 72 72 |ing..// |your err|
|00001b20| 6f 72 20 73 74 72 69 6e | 67 73 2c 20 61 6e 64 20 |or strin|gs, and |
|00001b30| 45 72 72 6f 72 53 74 72 | 69 6e 67 49 6e 64 65 78 |ErrorStr|ingIndex|
|00001b40| 20 74 68 65 20 73 70 65 | 63 69 66 69 63 20 73 74 | the spe|cific st|
|00001b50| 72 69 6e 67 20 77 69 74 | 68 69 6e 20 74 68 69 73 |ring wit|hin this|
|00001b60| 0d 09 2f 2f 20 27 53 54 | 52 23 27 20 74 68 61 74 |..// 'ST|R#' that|
|00001b70| 20 69 73 20 74 6f 20 62 | 65 20 64 69 73 70 6c 61 | is to b|e displa|
|00001b80| 79 65 64 2e 20 54 68 65 | 20 75 73 65 72 20 77 69 |yed. The| user wi|
|00001b90| 6c 6c 20 67 65 74 20 74 | 6f 20 73 65 65 20 74 68 |ll get t|o see th|
|00001ba0| 65 20 6d 65 73 73 61 67 | 65 20 77 68 65 6e 0d 09 |e messag|e when..|
|00001bb0| 2f 2f 20 74 68 65 20 46 | 69 6e 64 65 72 20 73 74 |// the F|inder st|
|00001bc0| 61 72 74 73 20 68 61 6e | 64 6c 69 6e 67 20 65 76 |arts han|dling ev|
|00001bd0| 65 6e 74 73 2e 0d 09 42 | 6f 6f 6c 65 61 6e 09 09 |ents...B|oolean..|
|00001be0| 09 72 65 6d 6f 76 65 49 | 6e 73 74 61 6c 6c 65 64 |.removeI|nstalled|
|00001bf0| 43 6f 64 65 3b 0d 09 42 | 6f 6f 6c 65 61 6e 09 09 |Code;..B|oolean..|
|00001c00| 09 62 65 65 70 4e 6f 77 | 3b 0d 09 42 6f 6f 6c 65 |.beepNow|;..Boole|
|00001c10| 61 6e 09 09 09 70 6f 73 | 74 45 72 72 6f 72 3b 0d |an...pos|tError;.|
|00001c20| 09 69 6e 74 09 09 09 09 | 65 72 72 6f 72 53 74 72 |.int....|errorStr|
|00001c30| 69 6e 67 73 49 44 3b 0d | 09 69 6e 74 09 09 09 09 |ingsID;.|.int....|
|00001c40| 65 72 72 6f 72 53 74 72 | 69 6e 67 49 6e 64 65 78 |errorStr|ingIndex|
|00001c50| 3b 0d 09 0d 7d 20 45 53 | 50 61 72 61 6d 42 6c 6f |;...} ES|ParamBlo|
|00001c60| 63 6b 3b 0d 0d 0d 23 65 | 6e 64 69 66 0d 00 00 00 |ck;...#e|ndif....|
|00001c70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c80| 00 00 01 00 00 00 02 6c | 00 00 01 6c 00 00 00 32 |.......l|...l...2|
|00001c90| 01 f6 26 c0 5f 58 d7 71 | 79 26 4f 72 98 02 a9 75 |..&._X.q|y&Or...u|
|00001ca0| 2c 1f 50 13 09 32 2d 40 | ff f4 38 50 20 1e 91 3c |,.P..2-@|..8P ..<|
|00001cb0| 0c 50 61 72 61 6d 42 6c | 6f 63 6b 2e 68 1d 02 00 |.ParamBl|ock.h...|
|00001cc0| 02 00 54 45 58 54 52 2a | 63 68 01 00 00 14 00 00 |..TEXTR*|ch......|
|00001cd0| 02 00 54 45 58 54 52 2a | 63 68 01 00 00 14 00 00 |..TEXTR*|ch......|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 a8 2a 92 1a 00 00 | 1b ed 00 00 02 9e 18 0a |...*....|........|
|00001d00| 7a 01 ff b6 60 50 01 14 | 82 8b 06 12 00 02 2e 00 |z...`P..|........|
|00001d10| bf ff e6 ed 09 02 01 c6 | 02 83 2e ff e6 55 7a 01 |........|.....Uz.|
|00001d20| ff e2 20 06 13 00 dc 4e | 91 2d 40 9f 57 01 ff d2 |.. ....N|.-@.W...|
|00001d30| 60 50 03 14 2a 4a 6e ff | d4 68 6a be d0 71 01 ff |`P..*Jn.|.hj..q..|
|00001d40| d4 57 01 ff d2 50 01 08 | 9a 60 50 01 14 1a f4 b2 |.W...P..|.`P.....|
|00001d50| 01 ff da 95 95 57 20 1c | 01 08 9a 52 5a 01 ff b6 |.....W .|...RZ...|
|00001d60| 20 06 01 00 f4 20 08 94 | 7a 01 ff ca 5a 94 50 01 | .... ..|z...Z.P.|
|00001d70| 08 da 57 4f 01 a8 70 28 | cc 20 18 52 2a 59 94 58 |..WO..p(|. .R*Y.X|
|00001d80| 00 00 01 68 52 2a 63 68 | 02 50 00 2d 00 07 02 62 |...hR*ch|.P.-...b|
|00001d90| 01 a1 00 18 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 04 00 09 00 00 06 4d | 6f 6e 61 63 6f 00 00 00 |.......M|onaco...|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 04 00 | 00 03 00 00 00 48 00 48 |........|.....H.H|
|00001df0| 00 00 00 00 03 48 02 52 | 00 00 00 00 03 48 02 52 |.....H.R|.....H.R|
|00001e00| 00 06 05 78 03 de 00 01 | 00 00 00 48 00 48 00 00 |...x....|...H.H..|
|00001e10| 00 00 03 48 02 52 00 01 | 00 00 00 64 00 00 00 01 |...H.R..|...d....|
|00001e20| 00 01 01 01 00 02 00 01 | 27 0f 00 01 00 01 00 00 |........|'.......|
|00001e30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e60| 00 04 00 09 00 00 06 4d | 6f 6e 61 63 6f 08 00 00 |.......M|onaco...|
|00001e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ea0| 00 00 00 00 00 00 00 04 | 01 00 00 01 00 00 00 00 |........|........|
|00001eb0| 00 01 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 01 00 00 00 |........|........|
|00001ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 01 00 |........|........|
|00001ef0| 00 00 02 6c 00 00 01 6c | 00 00 00 32 00 83 b8 b0 |...l...l|...2....|
|00001f00| 09 8e 00 00 00 1c 00 32 | 00 00 42 42 53 52 00 00 |.......2|..BBSR..|
|00001f10| 00 0a 02 50 ff ff 00 00 | 00 00 00 83 b2 f0 00 00 |...P....|........|
|00001f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+